package com.example.demo.controller;

import org.apache.ibatis.annotations.ResultMap;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

@RestController
@RequestMapping("/guest")
public class GuestController {


    @RequestMapping(value = "/enter", method = RequestMethod.GET)
    public Map login() {
        HashMap<String, String> map = new HashMap<>();
        map.put("info", "欢迎进入，您的身份是游客");
        return map;
    }

    @RequestMapping(value = "/getMessage", method = RequestMethod.GET)
    public Map<String, String> submitLogin() {
        HashMap<String, String> map = new HashMap<>();
        map.put("info", "您拥有获得该接口的信息的权限");
        return map;
    }
}
